<!DOCTYPE html>
<html>
<head><meta charset="UTF-8"><title>VAL_TABLE 快速测试</title></head>
<body>
<pre id="result">正在测试...</pre>
<script src="dbc-parser.js"></script>
<script>
const testDBC = `VERSION ""
BU_:
VAL_TABLE_ vt_BooleanValues 1 "true" 0 "false" ;
BO_ 100 Test: 8 Vector__XXX
 SG_ Signal1 : 0|8@1+ (1,0) [0|255] "" Vector__XXX`;

try {
    const db = parseDBCContent(testDBC, 'test.dbc');
    document.getElementById('result').textContent = `成功！帧: ${db.frames.length}, 警告: ${db.warnings.length}`;
} catch (e) {
    document.getElementById('result').textContent = `失败: ${e.message}`;
}
</script>
</body>
</html> 